<script setup>
import Child from "./Son.vue"

const handleCustomEvent = (payload) => {
  alert(payload)
}
</script>

<template>
  <div class="box">
    <child @son-click="handleCustomEvent"></child>
  </div>
</template>

<style scoped>
.box {
  width: 100vw;
  height: 400px;
  background-color: greenyellow;
}
</style>
